package com.ebupt.migu.music.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by Intellij IDEA.
 * User:  liuyangyang@cd.ebupt.com
 * Date:  2019/9/14
 */

@Getter
@Setter
public class PromptException extends RuntimeException{
    /** 异常编码 */
    private StatusEnum statusEnum;

    /**
     * 异常信息
     * @param message
     */
    public PromptException(StatusEnum statusEnum, String message) {
        super(message);
        this.statusEnum = statusEnum;
    }
}
